<div class="container">
  <div class="row">
    <div class="col-md-4">
      <a><button pButton type="button" label="添加" class="ui-button-text" icon="fa-plus" (click)="newUser()"></button></a>
    </div>
  </div>
  <div class="row">
    <div class="col-md-4">
      <p-dataTable [value]="users" [rows]="10" [paginator]="true">
          <p-header>用户列表</p-header>
          <p-column field="user_name" header="登录名" sortable="true"></p-column>
          <p-column field="user_realname" header="用户名" sortable="true"></p-column>
          <p-column field="active_flag" header="有效性" sortable="true"></p-column>
          <p-column>
            <ng-template pTemplate="header">操作</ng-template>
            <ng-template pTemplate="body" let-user="rowData">
              <div style="text-align: center">
                <a><button pButton type="button" label="编辑" class="ui-button-text" icon="fa-edit" (click)="editUser(user)"></button></a>
              </div>
            </ng-template>
          </p-column>
      </p-dataTable>
    </div>
  </div>
</div>
